package team.zero.lemon.module.workflow.dao;

import org.apache.ibatis.annotations.Param;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.module.workflow.entity.Rule;

import java.util.List;

@MyBatisDao
public interface IRuleDao extends ICrudDao<Rule> {
    public List<Rule> findByTemplateId(@Param("templateId") int templateId);

    public List<Rule> findRuleByFromActivityIdRuleType(@Param("fromActivityId") Integer fromActivityId,@Param("ruleType") Integer ruleType);

    public int deleteByTemplateId(@Param("templateId") int templateId);
}